package main

import (
	"io/ioutil"
	"log"
	"net/http"
	"net/url"
)

func main() {
	u, err := url.Parse("http://localhost:9090/")
	if err != nil {
		log.Panic("url parse failed")
	}

	res, err := http.Get(u.String())
	if err != nil {
		log.Panic("http get failed")
	}

	result, err := ioutil.ReadAll(res.Body)
	res.Body.Close()

	log.Println(result)
	log.Println(string(result))
}
